home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Belgian Amiga Club - ADF Collection
/
BS1 part 19.zip
/
BS1 part 19
/
PD.adf
/
Surf
/
CONTROL.C
< prev
next >
Wrap
C/C++ Source or Header
|
1988-12-14
|
751b
|
53 lines
#include "bezpt.h"
#include "control.h"
#include "scrnio.h"
#include "mytypes.h"
CURMODE CurMode = DRAWPOLY;
void SetFitBez()
{
if( GetNumSegs() < 1 ) {
return;
}
ClrWindow(true);
CurMode = FITBEZIER;
XdrawAllBezSegs();
}
void SetPolyDraw()
{
ClrWindow(true);
CurMode = DRAWPOLY;
ClearSegments();
}
void EditControl0(x,y)
int x, y;
{
DrawControl0();
XdrawBezSeg();
Cntrl1X(GetCurSeg()) = x;
Cntrl1Y(GetCurSeg()) = y;
XdrawBezSeg();
DrawControl0();
}
void EditControl1(x,y)
int x, y;
{
DrawControl1();
XdrawBezSeg();
Cntrl2X(GetCurSeg()) = x;
Cntrl2Y(GetCurSeg()) = y;
XdrawBezSeg();
DrawControl1();
}